package com.hanamaki.oop.demo04;

public class Demo1 {
    int score1;
    int score2;
    int score3;
    int sum;
    int avg = 3;

    public Demo1(int score1, int score2, int score3) {
        this.score1 = score1;
        this.score2 = score2;
        this.score3 = score3;
        sum = score1 + score2 + score3;
        avg = sum / avg;
    }
}